#ifndef _THREAD_POOL_
#define _THREAD_POOL_
#include <my_header.h>
#include "worker_thread_info.h"
#include "netfd_queue.h"
#include "stack.h"
typedef struct thread_pool_info_s{
    netfd_queue_t netfd_queue;
    worker_info_t worker_info;
    pthread_cond_t cond;
    pthread_mutex_t mutex;
    my_stack *dirStackArr;
    int * fd_to_index;
    int exit_flag;
}thread_pool_info_t;
/* typedef struct mysql_init_mutex_s{ */
/*     pthread_mutex_t mutex; */
/*     pthread_cond_t cond; */
/* }mysql_mutex_t; */
int init_thread_pool_info(thread_pool_info_t * pthread_pool,int init_woker_num,my_stack* stacks,int *fd_to_index);
#endif
